import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    loading: false
  },
  getters: {
    getLoading: (state) => {
      return state.loading
    }
  },
  mutations: {
    controlLoading (state, flag) {
      state.loading = flag
    }
  }
  // modules: {
  //   nhf,
  //   formula
  // }
})

export default store
